package org.feng.fxfront.util;

/**
 * 字符串工具
 *
 * @author feng
 */
public class StringUtil {

    public static boolean isNotEmpty(final CharSequence cs) {
        return !isEmpty(cs);
    }

    public static boolean isEmpty(final CharSequence cs) {
        return cs == null || cs.isEmpty();
    }

    public static String ifEmptyReturn(String original, String returnStr) {
        return isEmpty(original) ? returnStr : original;
    }
}
